package com.ozo.easy.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 角色菜单授权对象
 *
 * @author ozo
 * @version 1.0
 * @date 2025-02-17 16:53:43
 */
@Data
@Schema(description = "角色菜单授权对象")
public class SysRoleMenuAuthDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "角色id不能为空")
    @Schema(description = "角色id")
    private Long roleId;

    @NotEmpty(message = "菜单id不能为空")
    @Schema(description = "菜单id")
    private List<Long> menuIdList;

}
